<template>
	<div>
		<el-dialog :title="title" :visible.sync="dialogTableVisible">
			<Graytable :tHead="tHead" :tData="tData"></Graytable>
			<pagination :total="query.total" :page.sync="query.page" :limit.sync="query.limit" @pagination="getList" />
		    <div slot="footer" class="dialog-footer">
		      <el-button @click="dialogTableVisible = false">取 消</el-button>
		      <el-button type="primary" @click="dialogTableVisible = false">确 定</el-button>
		    </div>
		</el-dialog>
	</div>
</template>

<script>
	export default {
		props:{
			openTitle:{
				type:String
			}
		},
		watch:{
			openTitle (val) {
				this.title = val;
			}
		},
		data () {
			return {
				title:"",
				dialogTableVisible:false,
				query:{
					total:0,
					page:1,
					limit:10
				},
				tHead:[
					{
						prop:"aa",
						label:"执行同步时间"
					},
					{
						prop:"aa",
						label:"同步时间"
					},
					{
						prop:"aa",
						label:"状态"
					},
					{
						prop:"aa",
						label:"同步数量"
					},
					{
						prop:"aa",
						label:"同步成功数量"
					},
				],
				tData: [
					{
						aa:"aa"
					}
				],
			}
		},
		methods:{
			show () {
				this.dialogTableVisible = true;
			}
		}
	}
</script>

<style>
</style>
